<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>sticky</title>
		<style>
			#xi{
				background-color: darkgoldenrod;
				border: 2px dash red;
				font-size: 40px;
				position: sticky;
				top: 5px;
				height: 50px;
			}
		</style>
	</head>
	<body>
		<div id="shang" style="height: 800px;background-color:blue ;"></div>
		<div id="xi">
			<a href="#">宝贝详情</a>
			<a href="#">宝贝评价</a>
		</div>
		<div id="other" style="height: 5000px;background-color: aquamarine;"></div>
	</body>
</html>